#ifndef pkm_renderobject_h
#define pkm_renderobject_h

#include "RenderData.h"

namespace k2graphics
{

class RenderObject
{
public:
	int roID;

	RenderData* rd;
	int layer;
	int viewportGroup;
	int viewportBits;

	float roX;
	float roY;
	float roHalfWidth;
	float roHalfHeight;

	bool isLocal;

	RenderObject(int renderTarget, int maxB, int maxI, int maxF);
	~RenderObject();

	void setLayer(int nl);

	void setCropPositionOnly(float x, float y);
	void setCanonicalPosition(float x, float y, float theta);
	void setBoundingBoxDims(float width, float height);
	void extractCanonicalPosition();
};

}
#endif
